package com.yejiali.backend.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.yejiali.backend.entity.CommentLike;
import com.yejiali.backend.entity.vo.CommentLikeVO;
import com.yejiali.backend.response.Response;

import java.util.List;

/**
 * 点赞表(CommentLike)表服务接口
 *
 * @author yejiali
 * @since 2025-08-16 10:03:51
 */
public interface CommentLikeService extends IService<CommentLike>{
    /**
     * 查询收到的评论点赞
     * @param userId
     * @return
     */

    Response<List<CommentLikeVO>> receiveLikeComment(Long userId);

    /**
     * 删除收到的评论点赞通知
     * @param commentLikeId
     * @return
     */
    Response<String> deleteLikeComment(Long commentLikeId);

    /**
     * 点赞评论
     * @param userId
     * @return
     */
    Response<String> likeComment(Long userId, Long commentId) throws JsonProcessingException;

    /**
     * 取消点赞评论
     * @param userId
     * @return
     */
    Response<String> cancelLikeComment(Long userId, Long commentId);
}
